package by.gravity.drive_track.adapter;

import java.util.List;

import android.content.Context;
import android.view.View;
import android.widget.TextView;
import by.gravity.common.adapter.AbstractAdapter;
import by.gravity.drive_track.R;
import by.gravity.drive_track.model.Favorite;

public class FavoriteAdapter extends AbstractAdapter<Favorite> {

	public FavoriteAdapter(Context c, int pItemResource, List<Favorite> pList) {
		super(c, pItemResource, pList);
	}

	@Override
	public void init(View convertView, Favorite item) {
		TextView name = (TextView) convertView.findViewById(R.id.name);
		name.setText(item.getName());

	}

}
